package com.boot.chap01;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;

/**
 * 回调
 *
 * @author renwq
 * @since 2021/9/19 12:35
 */
public class ConnectHandler extends ChannelInboundHandlerAdapter {

    @Override
    public void channelActive(ChannelHandlerContext ctx) throws Exception {
        System.out.printf("Client %s connected%n", ctx.channel().remoteAddress());
    }
}
